const mysql = require('mysql')

const db = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: 'tzq0716.',
    database: 'restful-app-prod'
})
db.connect(function (err)  {
    if(err){
        return console.log(err)
    }
    console.log('Connected to the MySQL server.')
})

module.exports = db

  
  
